<?php

use think\facade\Route;
use app\providers\controller\Crontab;
use app\providers\controller\ScriptCmds;
use app\providers\middleware\ChenkIntranet;

Route::group('/system', function () {
    // 系统定时任务
    Route::get('/crontab', Crontab::class . '@index')->middleware(ChenkIntranet::class);
    // 获取执行脚本
    Route::get('/node/install', ScriptCmds::class . '@nodeInstall');
    Route::any('/node/install-success', ScriptCmds::class . '@nodeInstallSuccess');
    Route::any('/node/get-frps', ScriptCmds::class . '@getFrpsCmd');
});



